#include "dialog.h"
#include <QVBoxLayout>
#include <QPushButton>
#include <QLabel>
Dialog::Dialog()
{
    QVBoxLayout* layout = new QVBoxLayout();
    this->setLayout(layout);
    QPushButton* but = new QPushButton("这是一个按钮");
    QLabel* label = new QLabel("这是一个标签");

    layout->addWidget(but);
    layout->addWidget(label);


}
